from django.urls import path, re_path

from . import views


urlpatterns = [
    path('content', views.ArticleView.as_view({'get': 'list'})),  # 文章列表
    re_path(r'^content/(?P<pk>\d+)$', views.ArticleView.as_view({'get': 'retrieve'})),  # 单篇文章
    path('tag', views.TagView.as_view()),  # 文章标签
]
